package com.ocean.entity.edu;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author xk
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Course {
    private Integer id;
    private String cname;
    private String info;
    private Integer hours;
    private Double score;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date ctime;

    public Course(String cname, String info, Integer hours, Double score) {
        this.cname = cname;
        this.info = info;
        this.hours = hours;
        this.score = score;
    }

}
